<?php

/**
 * @author gbfun <gbfun@163.com>  2018-08-12 20:20
 * http://www.wuweiyou.com
 */

class db_model_foreground_address_region extends db_model_address_region
{
    protected $_db_table;   
    protected $_formatter;
    
    protected static $_instance;
    
    public static function get_instance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();    //by gbfun 又是静态变量
        }
    
        return self::$_instance;
    }
    
    private function __clone()
    {
    }
    
    protected function __construct()
    {
    }

    public function get_db_table()
    {
        if (null === $this->_db_table) {
            $this->_db_table = db_table_foreground_address_region::get_instance();
        }
        
        return $this->_db_table;
    }
}

